{% load static %}
<!DOCTYPE html>
<html>
<head>
    <meta charset="utf-8">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <title>{{ title }}</title>
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <meta name="description" content="Mobile Security Framework - MobSF">
    <meta name="author" content="Ajin Abraham">
    <link rel="icon" href="{% static "img/favicon.ico" %}">

    <!-- Tell the browser to be responsive to screen width -->
    <meta name="viewport" content="width=device-width, initial-scale=1">
    <!-- Font Awesome -->
    <link rel="stylesheet" href="{% static "adminlte/plugins/fontawesome-free/css/all.min.css" %}">
    <!-- Theme style -->
    <link rel="stylesheet" href="{% static "adminlte/dashboard/css/adminlte.min.css" %}">
    <!-- overlayScrollbars -->
    <link rel="stylesheet" href="{% static "adminlte/plugins/overlayScrollbars/css/OverlayScrollbars.min.css" %}">
    <!-- Ionicons -->
    <link rel="stylesheet" href="https://code.ionicframework.com/ionicons/2.0.1/css/ionicons.min.css">
    <!-- Google Font: Source Sans Pro -->
    <link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:300,400,400i,700" rel="stylesheet">
    {% block extra_css %}

    {% endblock %}
</head>
<body class="hold-transition {% block sidebar_option %} {% endblock %} layout-fixed layout-navbar-fixed">
<div class="wrapper">

    <!-- Navbar -->
    <nav class="main-header navbar navbar-expand navbar-dark navbar-primary">
        <ul class="navbar-nav">
            <li class="nav-item">
                <a id="nbar" class="nav-link" data-widget="pushmenu" href="#"><i class="fas fa-bars"></i></a>
            </li>
        </ul>
        <!-- Right navbar links -->
        <ul class="navbar-nav ml-auto">
            <li class="nav-item d-none d-sm-inline-block"><a href="{% url 'recent' %}" class="nav-link">最近扫描</a></li>
            <li class="nav-item d-none d-sm-inline-block"><a href="{% url 'home' %}" class="nav-link">静态扫描</a></li>
            <li class="nav-item d-none d-sm-inline-block"><a href="{% url 'dynamic' %}" class="nav-link">动态扫描</a></li>
            <li class="nav-item d-none d-sm-inline-block"><a href="{% url 'api_docs' %}" class="nav-link">API文档</a></li>
            <!-- <li class="nav-item d-none d-sm-inline-block"><a href="https://opensecurity.in/donate" class="nav-link">捐赠 ♥</a></li> -->
            <li class="nav-item d-none d-sm-inline-block"><a href="{% url 'about' %}" class="nav-link">关于</a></li>
        </ul>

        <!-- SEARCH FORM -->
        <form class="form-inline ml-3" action="/search" method="GET">
            <div class="input-group input-group-sm">
                <input class="form-control form-control-navbar" id="navbar-search-input" type="search"
                       placeholder="搜索MD5" name="md5" aria-label="Search">
                <div class="input-group-append">
                    <button class="btn btn-navbar" type="submit">
                        <i class="fas fa-search"></i>
                    </button>
                </div>
            </div>
        </form>


    </nav>
    <!-- /.navbar -->
    <!-- sidebar-->
    <!-- Main Sidebar Container -->
    <aside class="main-sidebar sidebar-dark-primary elevation-4">
        <!-- Brand Logo -->
        <a href="{% url 'home' %}" class="brand-link">
            <img src="{% static "img/mobsf_icon.png" %}" alt="MobSF" class="brand-image"
                 style="opacity: .8">
            <span class="brand-text logo-lg"> | <strong> Mob</strong>SF</span>
        </a>
        {% block sidebar %}

        {% endblock %}
    </aside>
    <!-- /.sidebar -->
    <!-- Content Wrapper. Contains page content -->
    {% block content %}

    {% endblock %}

    <!-- /.content-wrapper -->
    <footer class="main-footer">
        <strong>© {% now "Y" %} Mobile Security Framework - MobSF | <a href="https://ajinabraham.com">Ajin Abraham</a> |
            <a href="https://opensecurity.in">OpenSecurity</a>.</strong>
        <div class="float-right d-none d-sm-inline-block">
            <b>版本</b> {{ version }}
        </div>
    </footer>

    <!-- Control Sidebar -->
    <aside class="control-sidebar control-sidebar-dark">
        <!-- Control sidebar content goes here -->
    </aside>
    <!-- /.control-sidebar -->
</div>
<!-- ./wrapper -->

<!-- jQuery -->
<script src="{% static "adminlte/plugins/jquery.min.js" %}"></script>
<!-- jQuery UI 1.11.4 -->
<script src="{% static "adminlte/plugins/jquery-ui.min.js" %}"></script>
<!-- Resolve conflict in jQuery UI tooltip with Bootstrap tooltip -->
<script>
    $.widget.bridge('uibutton', $.ui.button)
</script>
<!-- Bootstrap 4 -->
<script src="{% static "adminlte/plugins/bootstrap/bootstrap.bundle.min.js" %}"></script>
<!-- overlayScrollbars -->
<script src="{% static "adminlte/plugins/overlayScrollbars/js/jquery.overlayScrollbars.min.js" %}"></script>
<!-- AdminLTE App -->
<script src="{% static "adminlte/dashboard/js/adminlte.min.js" %}"></script>
<script>
    // navbar hack
    if ($(".sidebar-collapse")[0])
        document.getElementById("nbar").style.display = "none";
</script>
{% block extra_scripts %}

{% endblock %}

</body>
</html>
